Testing

Explain the Selenium Grid in Brief | Software Testing Tool

Explain the Selenium Grid in Brief | Software Testing Tool

Explain the Selenium Grid in Brief | Software Testing Tool

In this article, you will learn the following concepts of the selenium grid:

  • What is Selenium Grid?
  • When we use the Selenium Grid?
  • What are the differences between Grid 1.0 and Grid 2.0
  • The architecture of the selenium Grid

What is Selenium Grid?

Selenium Grid is a part of the suite of selenium which specializes in executing the test scripts and test cases on different browsers, operating systems, and machines parallelly. It can be achieved by routing the commands of remote browser instances where the server is known as a hub. A user has to configure the remote server in order to execute the test scripts and test cases. Its latest version is Grid 2.0. Selenium Grid architecture is based on hub-node where it is allowed to run the test scripts on a specific machine known as the hub, but its execution will happen in multiple machines known as Node.

When we use the Selenium Grid?

There are two specific in which we have to use the Selenium Grid:

  • When the tester needs to run the test scripts against different browsers, operating systems, and machines all at the same time. It helps in ensuring the capability of the application across different browsers and operating systems that the tester is testing. 
  • It saves the time of the execution of the test cases. If the test has large test scripts, then a selenium grid is the best option. 

What are the differences between Grid 1.0 and Grid 2.0?

Grid 1.0

Grid 2.0

Selenium Grid 1.0 has its own Remote Control that is completely different from the selenium RC server.

Selenium Grid 2.0 has been bundled with the selenium server jar file.

It is important to install and configure the Apache Ant to use Grid 1.0.

There is no need to install the Apache Ant.

It only supports the selenium RC commands/instructions. 

It supports commands and instructions from both selenium RC and selenium WebDriver.

It allows automating only one browser per Remote control.

It allows automating the 5 browsers. 

The architecture of the Selenium Grid

Selenium Grid architecture has hub and Node.

The Hub:

  • It is the central point where the tester loads its tests.
  • There is only one hub in the grid and it is mandatory.
  • The hub will be launched in a single machine only. 
  • The machine contains the hub which keeps the test, but the browser is automated on the node.

The Node:

  • Nodes the place test execution will take place which is loaded by the hub. 
  • One hub can have multiple nodes.
  • The node can be run and launched on different platforms and browsers. 
  • There is no need to be nodes on the platform or machine which is having a hub.
Yamini  Sharma

I am working as a professional engineer in "HIghRadius Technologies Pvt. Ltd." Passionate about learning and exploring new technologies. Enthusiast in writing and sharing what I have in my knowledge bucket.